package com.ruoyi.system.service;

import com.ruoyi.system.entity.OneElectronFenceAlarm;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * 一号库区电子围栏报警信息(OneElectronFenceAlarm)表服务接口
 *
 * @author makejava
 * @since 2023-10-25 13:43:08
 */
public interface OneElectronFenceAlarmService {

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    OneElectronFenceAlarm queryById(Integer id);

    /**
     * 分页查询
     *
     * @param oneElectronFenceAlarm 筛选条件
     * @param pageRequest           分页对象
     * @return 查询结果
     */
    Page<OneElectronFenceAlarm> queryByPage(OneElectronFenceAlarm oneElectronFenceAlarm, PageRequest pageRequest);

    List<OneElectronFenceAlarm> queryAll(OneElectronFenceAlarm oneElectronFenceAlarm);

    /**
     * 新增数据
     *
     * @param oneElectronFenceAlarm 实例对象
     * @return 实例对象
     */
    OneElectronFenceAlarm insert(OneElectronFenceAlarm oneElectronFenceAlarm);

    /**
     * 修改数据
     *
     * @param oneElectronFenceAlarm 实例对象
     * @return 实例对象
     */
    OneElectronFenceAlarm update(OneElectronFenceAlarm oneElectronFenceAlarm);

    /**
     * 通过主键删除数据
     *
     * @param id 主键
     * @return 是否成功
     */
    boolean deleteById(Integer id);

}
